Initialization of Multidimensional Array in C
In C, initialization of a multidimensional array can have left most dimensions as optional. Except for the leftmost dimension, all other dimensions must be specified....
read more
C exit(), abort() and assert() Functions
The C exit(), abort(), and assert() functions are all used to terminate a C program but each of them works differently from the other. In this article, we will learn about exit, abort, and assert functions and their use in C programming language....
read more
What are the Operators that Can be and Cannot be Overloaded in C++?
There are various ways to overload Operators in C++ by implementing any of the following types of functions:...
read more
How can I return multiple values from a function?
We all know that a function in C can return only one value. So how do we achieve the purpose of returning multiple values. Well, first take a look at the declaration of a function....
read more
C Program to Rotate Linked List block wise
Given a Linked List of length n and block length k rotate in a circular manner towards right/left each block by a number d. If d is positive rotate towards right else rotate towards left....
read more
Lex program to count the number of lines, spaces and tabs
Lex is a computer program that generates lexical analyzers and was written by Mike Lesk and Eric Schmidt. Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lexer in the C programming language.Let’s the how to count the number of lines, spaces and tabs using Lex. Example:...
read more
Calling Conventions in C/C++
In C/C++ programming, a calling convention is a set of rules that specify how a function will be called. You might have seen keywords like __cdecl or __stdcall when you get linking errors. For example:...
read more
How to sum two integers without using arithmetic operators in C/C++?
Given two integers a and b, how can we evaluate the sum a + b without using operators such as +, -, ++, –, …?...
read more
iswcntrl() function in C/C++
The iswcntrl() is a built-in function in C++ STL which checks if the given wide character is a control character or not. It is defined within the cwctype header file of C/C++....
read more
National Instruments Interview Experience (Off-campus)
Hiring was for Internship. The first round was a coding test on HackerEarth. There were two questions. Both carried 100 marks each....
read more
What are the C programming concepts used as Data Structures
Data-type in simple terms gives us information about the type of data. Example, integer, character, etc. Data-types in C language are declarations for the variables. Data-types are classified as:...
read more
C Program to Interchange Two Random Rows in a Matrix
In this article, we will write a C program to interchange two random rows in a matrix. Below are the inputs that will be taken from the user:...
read more